package com.yike.product.service;

import com.yike.product.entity.GoodsBrand;
import com.yike.product.param.GoodsBrandPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.product.param.GoodsBrandParam;
import com.yike.product.vo.GoodsBrandVo;

/**
 * 商品品牌 服务类
 *
 * @author Sakura
 * @since 2024-10-18
 */
public interface GoodsBrandService extends BaseService<GoodsBrand> {

    /**
     * 保存
     *
     * @param goodsBrandParam
     * @return
     * @throws Exception
     */
    boolean saveGoodsBrand(GoodsBrandParam goodsBrandParam) throws Exception;

    /**
     * 修改
     *
     * @param goodsBrandParam
     * @return
     * @throws Exception
     */
    boolean updateGoodsBrand(GoodsBrandParam goodsBrandParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteGoodsBrand(Long id) throws Exception;

    GoodsBrandVo getGoodsBrand(Long id) throws Exception;

    /**
     * 获取分页对象
     *
     * @param goodsBrandPageParam
     * @return
     * @throws Exception
     */
    Paging<GoodsBrandVo> getGoodsBrandPageList(GoodsBrandPageParam goodsBrandPageParam) throws Exception;

}
